|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.utility.DataObjects
public class DataObjects
This class handles saving and loading data for agents which are negotiating in a specific preference profile. Every unique combination of an agent class name and a preference profile name will be saved in a different file; for identification.
| Constructor Summary | |
|---|---|
DataObjects(java.lang.String dataFolderName)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAbsPath()
|
java.io.Serializable |
loadData(java.lang.String agentClassName,
java.lang.String prefProfName)
Loads the data of the agent, by the agentClassName and the prefProfName. |
boolean |
restartFolder()
Restarts the folder "theFolder", meaning it deletes all files in it and then creates a new empty folder with the same name. |
boolean |
saveData(java.io.Serializable dataToSave,
java.lang.String agentClassName,
java.lang.String prefProfName)
Saves dataToSave of the agent with class agentClassName for a preference profile prefProfName. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataObjects(java.lang.String dataFolderName)
| Method Detail |
|---|
public boolean restartFolder()
public boolean saveData(java.io.Serializable dataToSave,
java.lang.String agentClassName,
java.lang.String prefProfName)
dataToSave - a Serializable object to saveagentClassName - is the class name of the agent who wants to save the dataprefProfName - is the preference profile for which the agent wants to save data
public java.io.Serializable loadData(java.lang.String agentClassName,
java.lang.String prefProfName)
agentClassName - is the class name of the agent who wants to load the dataprefProfName - is the preference profile for which the agent wants to load the data
public java.lang.String getAbsPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||